<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
    <title>西京文交所管理端</title>
    <link rel="stylesheet" href="../../static/iconfont/iconfont.css" >
    <link rel="stylesheet" href="../../static/frameset.css" >
</head>
<body>

    <div id="J_wrap" class="m_wrap m_box_v p_index none">
        <div class="m_top">
            <headers v-on:callback="headerHandle" :userobj.sync="userobj"></headers>
        </div>
        <div class="m_content m_flex1 m_box">
            <menunav index="user" sub="userlist" :navobj.sync="userobj.group_acl"></menunav>
            <div class="container m_flex1">
                <ul class="breadcrumbs">
                    <li><span>用户管理</span>&gt;</li>
                    <li class="on">用户列表</li>
                </ul>
                <div class="m_search">
                    <div class="cols">
                        <input type="text" class="m_input medium" maxlength="12" v-inputnumber placeholder="交易号" v-model="search.no">
                        <input type="text" class="m_input medium" v-inputphone placeholder="手机号" v-model="search.phone">
                        <input type="text" class="m_input medium" v-inputnumber placeholder="号段" v-model="search.team_sn">
                        <select class="m_select" v-model="search.platform">
                            <option value="all" disabled selected hidden>注册来源</option>
                            <option value="all">全部</option>
                            <option value="IOS">IOS</option>
                            <option value="AND">Android</option>
                            <option value="PC">PC</option>
                        </select>
                        <input v-time type="text" class="m_input m_time" placeholder="注册日期" v-model="search.register_start">~
                        <input v-time type="text" class="m_input m_time" placeholder="注册日期" v-model="search.register_end">
                    </div>
                    <div class="cols">
                        <input v-time type="text" class="m_input m_time" placeholder="认证日期" v-model="search.auth_start">~
                        <input v-time type="text" class="m_input m_time" placeholder="认证日期" v-model="search.auth_end">
                        <input v-time type="text" class="m_input m_time" placeholder="绑卡日期" v-model="search.bindcard_start">~
                        <input v-time type="text" class="m_input m_time" placeholder="绑卡日期" v-model="search.bindcard_end">
                        <button class="m_btn line" v-on:click="reSearch">查询</button>
                        <button class="m_btn line" v-on:click="reset">重置</button>
                    </div>
                </div>
                <table class="m_table">
                    <thead>
                        <tr>
                            <th>交易号</th>
                            <th>姓名</th>
                            <th>手机号</th>
                            <th>运营中心/会员单位</th>
                            <th>上级交易号</th>
                            <th>注册来源</th>
                            <th>认证时间</th>
                            <th>绑卡时间</th>
                            <th>注册时间</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr v-if="list.length < 1">
                            <td colspan="9">
                                <div class="tc">
                                    <template v-if="schFlag">没有符合条件的内容</template>
                                    <template v-else>暂无数据</template>
                                </div>
                            </td>
                        </tr>
                        <tr v-for="item in list" v-if="list.length > 0">
                            <td class="pdl">
                                <div class="m_hover">
                                    <span class="m_textOver">{{ item.no }} <i class="icon-arrowdown"></i></span>
                                    <ul>
                                        <li><a class="hightlight" href="detail.html?id={{ item.id }}">详细信息</a></li>
                                        <li><a class="hightlight" href="../inquiry/funds.html?no={{ item.no }}" v-if="userobj.group_acl.inquiry.child.funds.isOwn">资金查询</a></li>
                                        <li><a class="hightlight" href="../inquiry/funds_change.html?no={{ item.no }}" v-if="userobj.group_acl.inquiry.child.funds_change.isOwn">资金变动查询</a></li>
                                        <li><a class="hightlight" href="../inquiry/hold.html?no={{ item.no }}" v-if="userobj.group_acl.inquiry.child.hold.isOwn">持仓查询</a></li>
                                        <li><a class="hightlight" href="../inquiry/clinch.html?no={{ item.no }}" v-if="userobj.group_acl.inquiry.child.clinch.isOwn">成交查询</a></li>
                                        <li><a class="hightlight" href="../inquiry/buy.html?no={{ item.no }}" v-if="userobj.group_acl.inquiry.child.buy.isOwn">申购查询</a></li>
                                        <li><a class="hightlight" href="../inquiry/entrust.html?no={{ item.no }}" v-if="userobj.group_acl.inquiry.child.outin.isOwn">委托查询</a></li>
                                        <li><a class="hightlight" href="log.html?no={{ item.no }}" v-if="userobj.group_acl.user.child.log.isOwn">操作日志</a></li>
                                    </ul>
                                </div>
                            </td>
                            <td><div class="m_textOver">{{ item.name ? item.name : '--' }}</div></td>
                            <td>{{ item.phone }}</td>
                            <td>{{ item.center }}</td>
                            <td>{{ item.superior_no }}</td>
                            <td>{{ item.platform }}</td>
                            <td>{{ item.auth_time }}</td>
                            <td>{{ item.bindcard_time }}</td>
                            <td>{{ item.register_time }}</td>
                        </tr>
                    </tbody>
                </table>
                <pages :cur.sync="cur" :all.sync="all" v-on:btn-click="getData"></pages>
            </div>
        </div>
    </div>


    <script src="../../js/plugins/zepto/zepto.min.js"></script>
    <script src="../../js/plugins/vue/vue.min.js"></script>
    <script src="../../js/plugins/seajs/sea.js"></script>
    <script src="../../js/plugins/seajs/seajs-text.js"></script>

    <script>
        seajs.use( "../../js/page/user/index" );
    </script>

</body>
</html>
